<?php
	
	require_once "Zend/Json.php";
	require_once "Zend/Validate/Alnum.php";
	
	$params = array (
		"groupname" => $params[0],
		"groupid"   => $params[1],
		"pagename"  => $params[2]
	);
	
	echo Zend_Json::encode( self::$plugins->page->addPage( new Zend_Config( $params ) ) );